﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Security;
using System.Web;
using System.Web.Mvc;
using UnionManager.Models;
using UnionManager.Controllers;
using UnionManager.ViewModels;
using UnionManager.Infrastructure;

namespace UnionManager.Controllers.System
{
    public class UnionUnitTypeController : BaseController
    {
        //
        // GET: /UnionUnitType/

        public ActionResult Index()
        {
            return View();
        }

        [HttpGet]
        public ActionResult Add()
        {
            if (Request != null && Request.IsAjaxRequest())
            {
                return PartialView();
            }
            else
            {
                return Redirect("Index");
            }
        }

        public ActionResult Edit(int id)
        {
            return View();

        }

        public ActionResult Permission()
        {

            if(Request != null && Request.IsAjaxRequest())
            {
                return PartialView();
            }
            else
            {
                return Redirect("Index");
            }
        }

    }
}
